import request from "../request";

const rootUrl = "/user/batch/"

export const addBatch = (data) => {
    return request("post",rootUrl+"add",data,"json")
}
export const cloneBatch = (data) => {
    return request("post",rootUrl+"cloneBatch",data,"json")
}
export const deleteBatch = (data) => {
    return request("post",rootUrl+"delete",data,"form")
}
export const findAll = (data) => {
    return request("get",rootUrl+"findAll",data)
}
export const findById = (data) => {
    return request("get",rootUrl+"findById",data)
}
export const mergeBatch = (data) => {
    return request("post",rootUrl+"mergeBatch",data,"json")
}
export const updateBatch = (data) => {
    return request("post",rootUrl+"update",data,"json")
}
